VerticalBoxLayout.setCellHAlign

Sets the Horizontal alignment for each child control within its containing table cell.

Supported values:
ValueConstant
ControlConstants.HORIZONTAL_ALIGNMENT_NONE
CenterControlConstants.HORIZONTAL_ALIGNMENT_CENTER
LeftControlConstants.HORIZONTAL_ALIGNMENT_LEFT
RightControlConstants.HORIZONTAL_ALIGNMENT_RIGHT
FillControlConstants.HORIZONTAL_ALIGNMENT_FILL

Setting a value of null removes any existing value for the property.

Further documentation.

Example:

 controls.PANEL1.layout.setCellHAlign(ControlConstants.HORIZONTAL_ALIGNMENT_CENTER);
 

Parameters

java.lang.String  cellHAlign,